<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" main="IE=edge">
    <meta name="viewport" main="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .wrap {
            width: 100%;
            background: aqua;
        }

        .main {
            width: 1080px;
            margin: 0 auto;
        }

        .list {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }

        .list li {
            list-style: none;
            width: 250px;
            height: 200px;
            background: green;
            margin-bottom: 10px;
        }

        .list li img {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>
    <div class="wrap">
        <div class="main">
            <ul class="list">
                <!-- <li>
                    <img src="https://img.zcool.cn/community/031nvs5rqwq3jdqow374oly3330.png" alt="">
                </li> -->
            </ul>
        </div>
    </div>
</body>
<script>
    var data = ["https://img.zcool.cn/community/031nvs5rqwq3jdqow374oly3330.png",
        "https://img.zcool.cn/community/031h9t8cnmprxhox9ybbglq3538.png",
        "https://img.zcool.cn/community/031jopc1b9evigmykwmdckw3234.png",
        "https://img.zcool.cn/community/031tnt8enqmeyt8ai61ui0w3139.png",
        "https://img.zcool.cn/community/0319wfltdillutdmbtiuj7f3935.png",
        "https://img.zcool.cn/community/031qbca0da3uja3wkujtv9i3035.png",
        "https://img.zcool.cn/community/031xlalfgu6st2olrtqhmwt3130.png",
        "https://img.zcool.cn/community/031onsa2sc2gsyegygxcxkd3533.png",
        "https://img.zcool.cn/community/031nvs5rqwq3jdqow374oly3330.png",
        "https://img.zcool.cn/community/031h9t8cnmprxhox9ybbglq3538.png",
        "https://img.zcool.cn/community/031jopc1b9evigmykwmdckw3234.png",
        "https://img.zcool.cn/community/031tnt8enqmeyt8ai61ui0w3139.png",
        "https://img.zcool.cn/community/0319wfltdillutdmbtiuj7f3935.png",
        "https://img.zcool.cn/community/031qbca0da3uja3wkujtv9i3035.png",
        "https://img.zcool.cn/community/031xlalfgu6st2olrtqhmwt3130.png",
        "https://img.zcool.cn/community/031onsa2sc2gsyegygxcxkd3533.png"];


    var list = document.getElementsByClassName('list')[0]
    list.innerHTML = data.reduce(function (total, n) {
        total += ` <li><img src="${n}" alt=""></li>`
        return total
    }, ``)
</script>

</html>